'use strict';

module.exports = app => {
  const { STRING, INTEGER } = app.Sequelize;

  const Media = app.model.define('medi', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    mediaId: INTEGER,
    mediaName: STRING,
    mediaState: STRING,
    mediaType: STRING,
    appName: STRING,
    appPackage: STRING,
    appStoreUrl: STRING,
    domain: STRING,
    miniappId: STRING,
    miniappName: STRING,
    orgId: STRING,
    industryCode: STRING,
    receivers: STRING,
  }, {
  });

  return Media;
};
